/**
 * 求职意向
 */
import React from 'react';
import { Form, Input } from 'antd';
import { FormHeader, FormLayout } from '../../components';

export default function ResumeIntention({ form }) {
    const { getFieldDecorator } = form;
    return (
        <>
            <FormHeader title="工作期望" id="resume-intention" />
            <FormLayout type="col2">
                <Form.Item label="当前薪资">
                    {getFieldDecorator('currentSalary', {
                        rules: [
                            {
                                required: true,
                                message: '请输入当前薪资'
                            }
                        ]
                    })(<Input placeholder="请输入当前薪资" />)}
                </Form.Item>
                <Form.Item label="期望薪资">
                    {getFieldDecorator('monthSalaryDemand', {
                        rules: [
                            {
                                required: true,
                                message: '请输入期望薪资'
                            }
                        ]
                    })(<Input placeholder="请输入期望薪资" />)}
                </Form.Item>
            </FormLayout>
        </>
    );
}
